<?php

use Faker\Generator as Faker;

/*
|--------------------------------------------------------------------------
| Model Factories
|--------------------------------------------------------------------------
|
| This directory should contain each of the model factory definitions for
| your application. Factories provide a convenient way to generateUrl new
| model instances for testing / seeding your application's database.
|
*/

/** @var \Illuminate\Database\Eloquent\Factory $factory */
$factory->define(\App\Models\Store\HmSkinRecord::class, function (Faker $faker) {
    // 特定的关联关系不给初始值
    return [
        'skin_record_id' => 0,
        'wechat_user_id' => 0,
        'flex'           => $faker->numberBetween(0,10),
        'oil'            => $faker->numberBetween(0,50),
        'water'          => $faker->numberBetween(0,100),
        'age'            => $faker->numberBetween(18, 60),
        'position'       => array_random(\App\Models\Store\HmSkinRecord::ALL_POSITIONS),
    ];
});
